﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/MasterPage.master"
    AutoEventWireup="true" CodeFile="ChangePass.aspx.cs" Inherits="Administrator_ChangePass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="content">
        <div class="box">
            <!-- box / title -->
            <div class="title">
                <h5>
                  Đổi Password 
                </h5>
            </div>
            <!-- end box / title -->
            <div id="divMessage" runat="server">
            </div>
            <div class="form">
                <div class="fields">
                    <div class="field">
                        <div class="label">
                            <label class="small-label">
                                Pasword Cũ</label></div>
                        <div class="input">
                            <asp:TextBox ID="txtcu" MaxLength="500" class="required medium" Style="width: 500px;"
                                runat="server" TextMode="Password"></asp:TextBox>
                                <asp:Label ID="lbl" runat="server" Font-Bold="True" ForeColor="Red" ></asp:Label>                
                            <br />
                            <br />
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtcu"
                                ErrorMessage="Không được để trống" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="field">
                        <div class="label">
                            <label class="small-label">
                                Password Mới</label></div>
                        <div class="input">
                            <asp:TextBox ID="txtpassnew" MaxLength="500" class="required medium" Style="width: 500px;"
                                runat="server" TextMode="Password"></asp:TextBox>
                            <br />
                            <br />
                            <br />
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtpassnew"
                                ErrorMessage="Không được để trống" Font-Bold="True" ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                    </div>
                    <div class="field">
                        <div class="label">
                            <label class="small-label">
                                Nhập Lại Pass</label></div>
                        <div class="input">
                            <asp:TextBox ID="txtcom" MaxLength="500" class="required medium" Style="width: 500px;"
                                runat="server" TextMode="Password"></asp:TextBox>
                            <br />
                            <br />
                            <br />
                            
                            <asp:CompareValidator ID="CompareValidator1" runat="server" 
                                ControlToValidate="txtcom" ErrorMessage="Chưa Trùng Password Mới" 
                                Font-Bold="True" ControlToCompare="txtpassnew"></asp:CompareValidator>
                            
                        </div>
                    </div>
                    <div class="buttons">
                        <div class="button ">
                            <div class="highlight">
                                <asp:Button CssClass="ui-button ui-widget ui-state-default ui-corner-all" Text="Cập nhật"
                                    ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" />
                            </div>
                            <input aria-disabled="false" role="button" class="ui-button ui-widget ui-state-default ui-corner-all"
                                value="Quay lại" onclick="location.href='../Administrator/Category.aspx'" type="button" />
                            <input aria-disabled="false" role="button" class="ui-button ui-widget ui-state-default ui-corner-all"
                                value="Làm Lại" type="reset" />
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
